/**
 * @Author wangyl
 * @E-mail wangyl0629@foxmail.com
 **/
package com.wyl.xue.admin.system.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName: DepartmentInfo
 * @Function: 部门相关操作对象
 * @Date: 2020/11/8 15:50
 * @author wyl
 * @version V1.0
 */
@Data
/**
 *返回忽略空对象
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class DepartmentInfoVo {

    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空")
    private String departmentName;

    /**
     * 上级部门
     */
    @NotNull(message = "部门上级不能为空")
    private Long parentId;

    /**
     * 部门描述
     */
    private String introduction;
}
